
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;
 
namespace MaxLeaf.Platform.DataContract
{
    /// <summary>
    ///职位
    /// </summary>
    [Serializable]
    [DataContract]
    [CommonsLib.ORM.DataTable(DBName = "MaxleafSCPBase", TableName = "mPosition", KeyPropName = "Key", ForeignKeyPropName = "ForeignKey")]
    public class mPositionDataModel:BaseDataModel
    {
        [DataMember]
        [CommonsLib.ORM.DataField("RecID", true)]
        public int Key {get;set;}

        [DataMember]
        [CommonsLib.ORM.DataField("RecStamp", "timestamp", 8)]
        public byte[] RecStamp {get;set;}

        [DataMember]
        [CommonsLib.ORM.DataField("Is_Delete", "bit", 1)]
        public bool Is_Delete {get;set;}

        [DataMember]
        [CommonsLib.ORM.DataField("CompanyID", "int", 4)]
        public int CompanyID {get;set;}

        [DataMember]
        [CommonsLib.ORM.DataField("PositionName", "nvarchar", 50)]
        public string PositionName {get;set;}


        public override string ToString()
        {
            return string.Format("{0}.{1}","mPosition",this.Key);
        }
    }
}
            